package com.yc.moive.bean;

public class Moives {
	private Integer mid;
	private String mname;
	private Integer tid;
	private String mart;
	private String mguide;
	private Integer mprice;
	
	private MoivesType type;

	@Override
	public String toString() {
		return "Moives [mid=" + mid + ", mname=" + mname + ", tid=" + tid + ", mart=" + mart + ", mguide=" + mguide
				+ ", mprice=" + mprice + "]";
	}

	public Moives(Integer mid, String mname, Integer tid, String mart, String mguide, Integer mprice) {
		super();
		this.mid = mid;
		this.mname = mname;
		this.tid = tid;
		this.mart = mart;
		this.mguide = mguide;
		this.mprice = mprice;
	}

	public Moives() {
		super();
	}

	public Integer getMid() {
		return mid;
	}

	public void setMid(Integer mid) {
		this.mid = mid;
	}

	public String getMname() {
		return mname;
	}

	public void setMname(String mname) {
		this.mname = mname;
	}

	public Integer getTid() {
		return tid;
	}

	public void setTid(Integer tid) {
		this.tid = tid;
	}

	public String getMart() {
		return mart;
	}

	public void setMart(String mart) {
		this.mart = mart;
	}

	public String getMguide() {
		return mguide;
	}

	public void setMguide(String mguide) {
		this.mguide = mguide;
	}

	public Integer getMprice() {
		return mprice;
	}

	public void setMprice(Integer mprice) {
		this.mprice = mprice;
	}

	public MoivesType getType() {
		return type;
	}

	public void setType(MoivesType type) {
		this.type = type;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((mart == null) ? 0 : mart.hashCode());
		result = prime * result + ((mguide == null) ? 0 : mguide.hashCode());
		result = prime * result + ((mid == null) ? 0 : mid.hashCode());
		result = prime * result + ((mname == null) ? 0 : mname.hashCode());
		result = prime * result + ((mprice == null) ? 0 : mprice.hashCode());
		result = prime * result + ((tid == null) ? 0 : tid.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		Moives other = (Moives) obj;
		if (mart == null) {
			if (other.mart != null)
				return false;
		} else if (!mart.equals(other.mart))
			return false;
		if (mguide == null) {
			if (other.mguide != null)
				return false;
		} else if (!mguide.equals(other.mguide))
			return false;
		if (mid == null) {
			if (other.mid != null)
				return false;
		} else if (!mid.equals(other.mid))
			return false;
		if (mname == null) {
			if (other.mname != null)
				return false;
		} else if (!mname.equals(other.mname))
			return false;
		if (mprice == null) {
			if (other.mprice != null)
				return false;
		} else if (!mprice.equals(other.mprice))
			return false;
		if (tid == null) {
			if (other.tid != null)
				return false;
		} else if (!tid.equals(other.tid))
			return false;
		return true;
	}
	
	
}
